<?php


namespace App\Models;


class ImRoleGroups extends BaseModel
{
    protected $table = 'im_role_groups';//角色组

    //角色关联
    public function roles()
    {
        return $this->hasMany(ImAccountRoles::class, 'group_id', 'id')
            ->select(['id', 'group_id', 'name']);
    }
}
